<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
 
    
    <title><s:property value="brand"/> ZOZOPO </title>
      
  </head>
  
  <body>
  <div id="wrapper">
  	<jsp:include page="head.jsp"></jsp:include>
  <div id="content">
  <div id="content_left">
  
  <div id="main_content">
				
		<div class="box"><div class="box_outer"><div class="box_inner"><div class="box_bottom_right"><div class="box_bottom_left">
      			<div class="box_content">
      	
      	
			<s:iterator value="releaseList" id="releaseList" status="sta">
    		
    			<div class="separator"></div>
						<div class="box_excerpt" id="post-1058">
							<h4><a href="manual/<s:property value="#releaseList.rewriteUrl"/>" rel="bookmark" ><s:property value="#releaseList.release_subject"/></a></h4>
							<div class="excerpt_info">来自 <a href="manual/userinfo.action?usermail=<s:property value="#releaseList.release_useremail"/>" ><s:property value="#releaseList.release_useremail"/></a>, <a href="#"  ><s:property value="#releaseList.release_kindvalue"/></a>,<a href="#"  ><s:property value="#releaseList.release_labledicvalue"/></a>, <a href="#"><s:property value="#releaseList.release_brand"/></a>   <s:property value="#releaseList.release_date"/></div>
							<div class="excerpt_meta">
								<div class="excerpt_desc">
								
    								<s:property value="#releaseList.release_context"/>
    			
    			 
    		
    						</div>
								<div class="excerpt_image">
									<s:if test="%{#releaseList.release_image=='null' || #releaseList.release_image==''}">
										<img src="icons/nophoto.jpg" width="150" height="150" />
									</s:if>
									<s:else>
										<img src="<s:property value="#releaseList.release_image"/>" width="150" height="150" />
									</s:else>
								
								</div>
								<div class="excerpt_more">
									<a href="manual/<s:property value="#releaseList.rewriteUrl"/>" >详细内容...</a></div>
							</div>
						</div>	
    			
    			
    			
    	</s:iterator>
			
		
			
		</div></div></div></div></div></div>
 
  </div>
  <!-- 换页 -->
  <div id="post-navigator"> 
	<div class='wp-pagenavi'>
  <%
						int pageSize = (Integer) request.getAttribute("pageSize");
						int beginPageNum =  (Integer) request.getAttribute("beginPageNum");
						int countRow =  (Integer) request.getAttribute("rowNum");
					    int countPage =(countRow-1)/pageSize+1;
					    
					    String brand = (String)request.getParameter("brand");//*/
					    brand = brand.replaceAll("%", "%25");
					    String url="brandforhome.action?brand="+brand;
					    
					    if((beginPageNum-pageSize+1) >= 1){%>

					    	<a href="<%=url %>&beginPageNum=<%=(beginPageNum-pageSize) %>">
									上一页 </a>
	<% }
					    
		StringBuffer chagePageBuff = new StringBuffer();
			if(countPage >= 2){
				for(int i=0;i<countPage;i++){
								if(beginPageNum == i*pageSize){
									%>
									<span class='current'><%=i+1 %></span>
									<%
								}else{
									%>
									<a href="<%=url %>&beginPageNum=<%=i*pageSize %>" class='page'>
									[<%=i+1 %>] </a>
									<%
								}
							}
						}
						if((beginPageNum+pageSize-countRow) < 0){%>
				    	<a href="<%=url %>&beginPageNum=<%=(beginPageNum+pageSize) %>" class='page'>
								下一页 </a>
				   		<% }
						//*/
						%>
		</div>							
	</div>
	 
	
			
  </div>
  	<jsp:include page="right.jsp"></jsp:include>
    </div>
     <jsp:include page="tail.jsp"></jsp:include>
    </div>
   
  </body>
  
</html>
